﻿
using System;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration;
using Abp.Application.Services.Dto;
using Abp.Extensions;
using LeadThing.AbpZeroTemplate.UserTrajectories;
using LeadThing.AbpZeroTemplate.UserTrajectorys;

namespace LeadThing.AbpZeroTemplate.UserTrajectorys.EntityMapper.UserTrajectorys
{

    /// <summary>
    /// 综治人员巡查轨迹的数据配置文件
    /// </summary>
    public class UserTrajectoryCfg : EntityTypeConfiguration<UserTrajectory>
    {
        /// <summary>
        ///  构造方法[默认链接字符串< see cref = "AbpZeroTemplateDbContext" /> ]
        /// </summary>
        public UserTrajectoryCfg()
        {
            ToTable("UserTrajectory", AbpZeroTemplateConsts.SchemaName.Basic);




            // 纬度
            Property(a => a.Latitude).HasMaxLength(400);
            // 经度
            Property(a => a.Longitude).HasMaxLength(400);
        }
    }
}